<template>
  <div style="padding-top: 20px">
    <el-card class="box-card">
      <div style="margin: 20px;" />
      <el-form :label-position="labelPosition" label-width="80px" :model="formLabelAlign" style="width: 500px">
        <el-form-item label="标题">
          <el-input v-model="formLabelAlign.name" />
        </el-form-item>
        <el-form-item label="内容" prop="desc">
          <el-input v-model="formLabelAlign.desc" type="textarea" />
        </el-form-item>
        <el-form-item>
          <el-button type="info" @click="submit">提交</el-button>
        </el-form-item>
      </el-form>
    </el-card>
  </div>
</template>

<script>
import { releaseInterviewResult } from '../../api/Artisan'
export default {
  data() {
    return {
      labelPosition: 'right',
      formLabelAlign: {
        name: '',
        desc: ''
      }
    }
  },
  methods: {
    submit() {
      const params = new URLSearchParams()
      params.append('title', this.formLabelAlign.name)
      params.append('content', this.formLabelAlign.desc)
      releaseInterviewResult(params).then(res => {

      })
    }
  }

}
</script>

<style scoped>

</style>
